﻿#if DEBUG
namespace Test.Entity {

    public class PetEntity {

        public int id;
        public string name;
        public int ownerID;
        public string ownerName;

        public PetEntity() { }

        public PetEntity(int id, string name, int ownerID, string ownerName) {
            this.id = id;
            this.name = name;
            this.ownerID = ownerID;
            this.ownerName = ownerName;
        }

        public override string ToString() {
            string _name = name == null ? "null" : name;
            string _ownerName = ownerName == null ? "null" : ownerName;
            return $"{{{id}, {_name}, {ownerID}, {_ownerName}}}";
        }

    }

}
#endif